package com.foreknow.demo9;

import java.awt.event.ActionListener;

public class MethodDemo {
    public void m1(ActionListener actionListener) {

    }

    public ActionListener m2() {
        return new ActionListenerImpl();
    }

    public static void main(String[] args) {
        MethodDemo demo = new MethodDemo();
        demo.m1(new ActionListenerImpl());

        ActionListener action = demo.m2();
    }
}
